import request from './request';


export const getProductList = async () => {
  // 获取入驻产品类目列表
  let res = await request({ params: { action: 'manage_cate_id' } });
  return res.data
}

export const platformApply = async (config) => {
  // 商家入驻甄品
  let res = await request({
    params: {
      action: 'platform_apply'
    },
    data: config
  });
  return res
}


export const authentication = (config) => {
  // 认证申请
  return request({
    params: {
      action: 'certification_apply'
    },
    data: config
  })
}

export const certification = (uniacid) => {
  // 认证状态
  return request({
    params: {
      action: 'certification'
    },
    data: { uniacid }
  })
}

export const checkBank = (price, uniacid) => {
  // 打款校验
  return request({
    params: {
      action: 'check_bank'
    },
    data: {
      uniacid: uniacid,
      price: price
    }
  })
}

export const getCheckNum = (uniacid) => {
  // 打款校验
  return request({
    params: {
      action: 'get_check_num',
    },
    data: {
      uniacid: uniacid
    }
  })
}





